using NUnit.Framework;
using Scribble.Services;
using System.Linq;

namespace Scribble.Tests.Scribble.Services
{
    [TestFixture]
    public class PostServiceTest
    {
//        [Test]
//        public void GetPostReturnsPostWithCorrectMetadata()
//        {
//            const int year = 2012;
//            const int month = 6;
//            const string urlTitle = "my-post-about-things";
//
//            var postService = new PostService();
//            var post = postService.GetPost(year, month, urlTitle);
//
//            Assert.That(post.PublishDate.Month, Is.EqualTo(month));
//            Assert.That(post.PublishDate.Year, Is.EqualTo(year));
//            Assert.That(post.UrlTitle, Is.EqualTo(urlTitle));
//        }

//        [Test]
//        public void GetPostsReturnsListOfPostsOrderedByDateDescending()
//        {
//            var postService = new PostService();
//            var posts = postService.GetPosts();
//
//            var orderedPosts = posts.OrderByDescending(p => p.PublishDate).ToList();
//
//            for (var postCount = 0; postCount < posts.Count(); postCount++)
//            {
//                Assert.That(posts[postCount], Is.EqualTo(orderedPosts[postCount]));
//            }
//        }
    }
}